package com.it.web;

import com.it.entity.worker.SystemUser;
import com.it.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import utils.R;

@RestController
@RequestMapping("/login")
public class LoginController {

    @Autowired
    private LoginService loginService;
    /**
     * 验证登录
     */
    @PostMapping("/checkLogin")
    public R checkLogin(@RequestBody SystemUser systemUser){
        return loginService.checkLogin(systemUser);
    }

}
